// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** batchAddCategories POST /api/tag_category/category/batch_add */
export async function batchAddCategoriesUsingPost(
  body: API.TagCategoryAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/tag_category/category/batch_add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listAllCategories GET /api/tag_category/category/list */
export async function listAllCategoriesUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListPictureCategory_>('/api/tag_category/category/list', {
    method: 'GET',
    ...(options || {}),
  })
}

/** updateCategoryStatus POST /api/tag_category/category/update_status */
export async function updateCategoryStatusUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.updateCategoryStatusUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/tag_category/category/update_status', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listPictureTagCategory GET /api/tag_category/list */
export async function listPictureTagCategoryUsingGet1(options?: { [key: string]: any }) {
  return request<API.BaseResponsePictureTagCategory_>('/api/tag_category/list', {
    method: 'GET',
    ...(options || {}),
  })
}

/** batchAddTags POST /api/tag_category/tag/batch_add */
export async function batchAddTagsUsingPost(
  body: API.TagCategoryAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/tag_category/tag/batch_add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listAllTags GET /api/tag_category/tag/list */
export async function listAllTagsUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListPictureTag_>('/api/tag_category/tag/list', {
    method: 'GET',
    ...(options || {}),
  })
}

/** updateTagStatus POST /api/tag_category/tag/update_status */
export async function updateTagStatusUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.updateTagStatusUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/tag_category/tag/update_status', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
